<div>
  <!-- 步骤条 -->
  <!-- :active="activeStep" 高亮 -->
  <el-steps :active="activeStep" finish-status="success">
    <el-step title="第一步" description="基本信息"></el-step>
    <el-step title="第二步" description="商品图片"></el-step>
    <el-step title="第三步" description="商品内容"></el-step>
  </el-steps>

  <!-- 标签页 -->
  <!-- tab-position 位置 -->
  <!--
    静态 value='three'
    动态 v-model='activeName'
   -->
  <el-tabs v-model="activeName" @tab-click="tabClick" tab-position="left">
    <!-- 第一步 -->
    <el-tab-pane name="one" label="基本信息">
      <el-form :model="addGoodsForm" label-width="80px">
        <el-form-item label="商品名称">
          <el-input v-model="addGoodsForm.goods_name"></el-input>
        </el-form-item>
        <el-form-item label="商品价格">
          <el-input v-model="addGoodsForm.goods_price"></el-input>
        </el-form-item>
        <el-form-item label="商品重量">
          <el-input v-model="addGoodsForm.goods_weight"></el-input>
        </el-form-item>
        <el-form-item label="商品数量">
          <el-input v-model="addGoodsForm.goods_number"></el-input>
        </el-form-item>
        <el-form-item label="商品分类">
          <!-- 级联选择器 -->
          <el-cascader
            v-model="addGoodsForm.goods_cat"
            :props="defaultProps"
            :options="options"
            change-on-select
          ></el-cascader>
        </el-form-item>
        <el-form-item label="是否促销">
          <template>
            <el-radio v-model="addGoodsForm.isPromotion" label="true"
              >是</el-radio
            >
            <el-radio v-model="addGoodsForm.isPromotion" label="false"
              >否</el-radio
            >
          </template>
        </el-form-item>
      </el-form>
      <el-button @click="next(&quot;two&quot;,2)" type="primary"
        >下一步</el-button
      >
    </el-tab-pane>

    <!-- 第二步 -->
    <el-tab-pane name="two" label="商品图片">
      <el-upload
        action="http://localhost:8888/api/private/v1/upload"
        :headers="headers"
        list-type="picture-card"
        :on-preview="handlePictureCardPreview"
        :on-remove="handleRemove"
        :on-success="uploadSuccess"
      >
        <i class="el-icon-plus"></i>
      </el-upload>
      <el-dialog :visible.sync="dialogVisible">
        <img width="100%" :src="dialogImageUrl" alt="" />
      </el-dialog>

      <el-button @click="next(&quot;three&quot;,3)" type="primary"
        >下一步</el-button
      >
    </el-tab-pane>

    <!-- 第三步 -->
    <!-- :options="editorOption" 配置项
        @blur="onEditorBlur($event)"   失去焦点
        @focus="onEditorFocus($event)" 聚焦
        @ready="onEditorReady($event)" 渲染成功
    -->
    <el-tab-pane name="three" label="商品内容">
      <quill-editor
        v-model="addGoodsForm.goods_introduce"
        :options="editorOption"
        class="introduce"
      >
      </quill-editor>
      <el-button @click='addGoods' type="primary">确定</el-button>
    </el-tab-pane>
  </el-tabs>

<div v-html='htmlStr'></div>
</div>
